package com.tensquare.article.client;

import com.tensquare.article.pojo.TbNotice;
import com.tensquare.entity.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: xxx
 * @Date: 2022/11/12 19:59
 * @Description: 通知客户端
 */
@FeignClient("tensquare-notice")
public interface NoticeClient {
    
    @ApiOperation(value = "新增通知和提醒新通知")
    @PostMapping("notice")
    public Result save(@RequestBody TbNotice notice);
}
